第 8 步:我们需要根据球击中的内容做出不同的事情!
- 将Collision with Shape添加到程序的底部。
- 找到事件处理程序精灵。 event_collision( collision ) ¬并将sprite更改为ball 。
在碰撞事件中, sprite指的是在事件处理程序中分配的精灵。在这个程序中,那是ball !
在碰撞事件中, hit_sprite指的是精灵碰撞的任何东西。在这个程序中, paddle或brick 。
To navigate the page using the TAB key, first press ESC to exit the code editor.